package com.example.wx.Entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;


@Entity
@Table(name = "master")
@Data                              //get，set
@NoArgsConstructor                 //无参构造
@AllArgsConstructor
@DynamicInsert
@DynamicUpdate

public class Master {

    @Id
    @Column(name = "account" , length=30)
    private String account;
    @Column(name = "password" , length =30)
    private String password;
    @Column(name = "name" , length = 30)
    private String name;
}
